package com.tf_cut.backend.request;


import javax.xml.bind.annotation.*;

import com.tf_cut.backend.request.xml.ResponseBody;
import com.tf_cut.backend.util.MybankConstants;
import com.tf_cut.backend.util.MybankObject;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "response")
@XmlType(propOrder = {"responseHead", "responseBody"})
public class Response extends MybankObject {
    private static final long serialVersionUID = 1587337112317735326L;

    @XmlAttribute(name = "id")
    private String id;

    /**
     * 公共应答参数（head）
     */
    @XmlElementRef
    private ResponseHead responseHead;

    /**
     * 业务应答参数（body）
     */
    @XmlElementRef
    private ResponseBody responseBody;

    public Response() {
    }

    public Response(ResponseHead responseHead, ResponseBody responseBody) {
        this.responseHead = responseHead;
        this.responseBody = responseBody;
        this.id = MybankConstants.RESPONSE;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ResponseHead getResponseHead() {
        return responseHead;
    }

    public void setResponseHead(ResponseHead responseHead) {
        this.responseHead = responseHead;
    }

    public ResponseBody getResponseBody() {
        return responseBody;
    }

    public void setResponseBody(ResponseBody responseBody) {
        this.responseBody = responseBody;
    }
}